Total Complexity | 32 |
Dependencies | 5 |
Dependents | 1 |
Total lines | 307 |
Lines of code | 103 |
Logical lines of code | 58 |
Comment lines | 125 |
Methods | 15 |
Properties | 1 |
Method | Rating | Maintainability | Complexity | Lines of code |
---|---|---|---|---|
process_wc_api_request() | 51 | 6 | 23 | |
is_single_use() | 64 | 5 | 10 | |
init_product() | 70 | 3 | 6 | |
get_product() | 68 | 3 | 7 | |
add_button_hooks() | 65 | 2 | 8 | |
validate_product_data() | 66 | 2 | 7 | |
get_additional_button_params() | 69 | 2 | 7 | |
get_button_total() | 79 | 2 | 3 | |
get_js_handler_class_name() | 82 | 1 | 3 | |
is_enabled() | 80 | 1 | 3 | |
get_form_handler_params() | 67 | 1 | 7 | |
is_wc_api_request_valid() | 77 | 1 | 3 | |
should_validate_product_data() | 77 | 1 | 3 | |
get_additional_js_handler_params() | 62 | 1 | 10 | |
get_id() | 80 | 1 | 3 |